<template>
    <div v-if="tpl_show" v-show="false" ref="tpl">
        <slot></slot>
    </div>
</template>
<script>
    import tool from 'src/util/tool';
    import util from '_util/index';


    export default {
        data() {
            return {
                tpl_show:true,
                tpl:''
            }
        },
        mounted(){
            if(this.$refs.tpl) {
                this.tpl = this.$refs.tpl.innerHTML;
                this.tpl_show = false;
            }
        },
        created(){
        },
        methods: {},
        watch: {
            tpl:function (val,old) {
                if(val) {
                    this.$emit('set_html', val);
                }
            }
        },
        computed: {
        },
        props: [],
        components: {},

    }
</script>
<style rel="stylesheet/less" scoped lang="less">
    @import "../../common/style/mixin";
</style>
